package com.oig.sys.auth.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@Schema(description = "菜单个性化查询方案")
public class ResourceQltmpDto {

    @Schema(description = "万能查询id")
    private Integer id;
    @Schema(description = "菜单id")
    @NotNull(message = "参数错误,菜单id不能为空")
    private Integer resourceId;
    @Schema(description = "万能查询保存的方案名")
    @NotEmpty(message = "参数错误，方案名不能为空")
    private String queryName;
    @Schema(description = "查询条件json 对象")
    @NotEmpty(message = "参数错误，条件jso不能为空")
    private String queryJson;

}
